package www.configure.all.modules;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import www.configure.all.modules.controller.GetMaxLink;

@SpringBootApplication
public class ModulesApplication {

    public static void main(String[] args) {
        SpringApplication.run(ModulesApplication.class, args);
    }

    @Autowired
    GetMaxLink getMaxLink;

    @Bean
    public ApplicationRunner applicationRunner() {
        return args -> {
            getMaxLink.startUe();
        };
    }
}
